Carbon


MPSetTaskStorageValue

Header: Multiprocessing.h Carbon status: Supported

Sets the storage value for a given index number.

OSStatus MPSetTaskStorageValue (
    TaskStorageIndex index, 
    TaskStorageValue value
);
index

The index number whose storage value you want to set.

value

The value you want to set.

function result

A result code.

DISCUSSION

Typically you use MPSetTaskStorageValue to store pointers to task-specific structures or data.

Calling this function from within a task effectively assigns a value in a two-dimensional array cross-referenced by task storage index value and the task ID.

Also see the function MPGetTaskStorageValue.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 2.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 2.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)